import React, { Component } from 'react'
import '../css/film.css'

export default class Film extends Component {
  state = {
    current: 0,
  }
  render() {
    return (
      <div>
        <div className='tabs-bar-wrapper'>
          <div className='tabs-bar'>
            <div onClick={() => this.setState({ current: 0 })} >
              正在热映
              <div className={this.state.current === 0 ? 'tab-ink-bar' : ''}></div>
            </div>
            <div onClick={() => this.setState({ current: 1 })}>
              即将上映
              <div className={this.state.current === 1 ? 'tab-ink-bar' : ''}></div>
            </div>
          </div>
        </div>
      </div>
    )
  }
}
